//tbDict.entity.ts
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity('tb_dict')
export class  tbDictEntity{

  @PrimaryGeneratedColumn()
  id:number

  @Column({name:'name'})
  name:string

  @Column({name:'code'})
  code:string

  @Column({name:'class_id'})
  classId:string

  @Column({name:'class_name'})
  className:string



  constructor(_data: any) {

    this.id = _data?.id;

    this.name = _data?.name;

    this.code = _data?.code;

    this.classId = _data?.classId;

    this.className = _data?.className;

  }

}

